import request from '@/router/axios';
const urlPrefix = '/admin';

export function list(data) {
    return request.post(urlPrefix + '/video_channel_complain/list', data).then(data => {
        data.dataList = (data.dataList || []).map(el => {
            el.channelName = el.videoChannelName;
            el.accessory = el.accessory.split(',') || [];
            return el;
        });
        return data;
    });
}

export function process(param) {
    return request.post(urlPrefix + '/video_channel_complain/process', param);
}
